/****************************************************************************
** Meta object code from reading C++ file 'qwt_slider.h'
**
** Created by: The Qt Meta Object Compiler version 68 (Qt 6.5.3)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../qwt_slider.h"
#include <QtCore/qmetatype.h>

#if __has_include(<QtCore/qtmochelpers.h>)
#include <QtCore/qtmochelpers.h>
#else
QT_BEGIN_MOC_NAMESPACE
#endif


#include <memory>

#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qwt_slider.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 68
#error "This file was generated using the moc from 6.5.3. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {

#ifdef QT_MOC_HAS_STRINGDATA
struct qt_meta_stringdata_CLASSQwtSliderENDCLASS_t {};
static constexpr auto qt_meta_stringdata_CLASSQwtSliderENDCLASS = QtMocHelpers::stringData(
    "QwtSlider",
    "scalePosition",
    "ScalePos",
    "bgStyle",
    "BGSTYLE",
    "thumbLength",
    "thumbWidth",
    "borderWidth",
    "NoScale",
    "LeftScale",
    "RightScale",
    "TopScale",
    "BottomScale",
    "BgTrough",
    "BgSlot",
    "BgBoth"
);
#else  // !QT_MOC_HAS_STRING_DATA
struct qt_meta_stringdata_CLASSQwtSliderENDCLASS_t {
    uint offsetsAndSizes[32];
    char stringdata0[10];
    char stringdata1[14];
    char stringdata2[9];
    char stringdata3[8];
    char stringdata4[8];
    char stringdata5[12];
    char stringdata6[11];
    char stringdata7[12];
    char stringdata8[8];
    char stringdata9[10];
    char stringdata10[11];
    char stringdata11[9];
    char stringdata12[12];
    char stringdata13[9];
    char stringdata14[7];
    char stringdata15[7];
};
#define QT_MOC_LITERAL(ofs, len) \
    uint(sizeof(qt_meta_stringdata_CLASSQwtSliderENDCLASS_t::offsetsAndSizes) + ofs), len 
Q_CONSTINIT static const qt_meta_stringdata_CLASSQwtSliderENDCLASS_t qt_meta_stringdata_CLASSQwtSliderENDCLASS = {
    {
        QT_MOC_LITERAL(0, 9),  // "QwtSlider"
        QT_MOC_LITERAL(10, 13),  // "scalePosition"
        QT_MOC_LITERAL(24, 8),  // "ScalePos"
        QT_MOC_LITERAL(33, 7),  // "bgStyle"
        QT_MOC_LITERAL(41, 7),  // "BGSTYLE"
        QT_MOC_LITERAL(49, 11),  // "thumbLength"
        QT_MOC_LITERAL(61, 10),  // "thumbWidth"
        QT_MOC_LITERAL(72, 11),  // "borderWidth"
        QT_MOC_LITERAL(84, 7),  // "NoScale"
        QT_MOC_LITERAL(92, 9),  // "LeftScale"
        QT_MOC_LITERAL(102, 10),  // "RightScale"
        QT_MOC_LITERAL(113, 8),  // "TopScale"
        QT_MOC_LITERAL(122, 11),  // "BottomScale"
        QT_MOC_LITERAL(134, 8),  // "BgTrough"
        QT_MOC_LITERAL(143, 6),  // "BgSlot"
        QT_MOC_LITERAL(150, 6)   // "BgBoth"
    },
    "QwtSlider",
    "scalePosition",
    "ScalePos",
    "bgStyle",
    "BGSTYLE",
    "thumbLength",
    "thumbWidth",
    "borderWidth",
    "NoScale",
    "LeftScale",
    "RightScale",
    "TopScale",
    "BottomScale",
    "BgTrough",
    "BgSlot",
    "BgBoth"
};
#undef QT_MOC_LITERAL
#endif // !QT_MOC_HAS_STRING_DATA
} // unnamed namespace

Q_CONSTINIT static const uint qt_meta_data_CLASSQwtSliderENDCLASS[] = {

 // content:
      11,       // revision
       0,       // classname
       0,    0, // classinfo
       0,    0, // methods
       5,   14, // properties
       2,   39, // enums/sets
       0,    0, // constructors
       0,       // flags
       0,       // signalCount

 // properties: name, type, flags
       1, 0x80000000 | 2, 0x0001510b, uint(-1), 0,
       3, 0x80000000 | 4, 0x0001510b, uint(-1), 0,
       5, QMetaType::Int, 0x00015103, uint(-1), 0,
       6, QMetaType::Int, 0x00015103, uint(-1), 0,
       7, QMetaType::Int, 0x00015103, uint(-1), 0,

 // enums: name, alias, flags, count, data
       2,    2, 0x0,    5,   49,
       4,    4, 0x0,    3,   59,

 // enum data: key, value
       8, uint(QwtSlider::NoScale),
       9, uint(QwtSlider::LeftScale),
      10, uint(QwtSlider::RightScale),
      11, uint(QwtSlider::TopScale),
      12, uint(QwtSlider::BottomScale),
      13, uint(QwtSlider::BgTrough),
      14, uint(QwtSlider::BgSlot),
      15, uint(QwtSlider::BgBoth),

       0        // eod
};

Q_CONSTINIT const QMetaObject QwtSlider::staticMetaObject = { {
    QMetaObject::SuperData::link<QwtAbstractSlider::staticMetaObject>(),
    qt_meta_stringdata_CLASSQwtSliderENDCLASS.offsetsAndSizes,
    qt_meta_data_CLASSQwtSliderENDCLASS,
    qt_static_metacall,
    nullptr,
    qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSQwtSliderENDCLASS_t,
        // property 'scalePosition'
        QtPrivate::TypeAndForceComplete<ScalePos, std::true_type>,
        // property 'bgStyle'
        QtPrivate::TypeAndForceComplete<BGSTYLE, std::true_type>,
        // property 'thumbLength'
        QtPrivate::TypeAndForceComplete<int, std::true_type>,
        // property 'thumbWidth'
        QtPrivate::TypeAndForceComplete<int, std::true_type>,
        // property 'borderWidth'
        QtPrivate::TypeAndForceComplete<int, std::true_type>,
        // Q_OBJECT / Q_GADGET
        QtPrivate::TypeAndForceComplete<QwtSlider, std::true_type>
    >,
    nullptr
} };

void QwtSlider::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<QwtSlider *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< ScalePos*>(_v) = _t->scalePosition(); break;
        case 1: *reinterpret_cast< BGSTYLE*>(_v) = _t->bgStyle(); break;
        case 2: *reinterpret_cast< int*>(_v) = _t->thumbLength(); break;
        case 3: *reinterpret_cast< int*>(_v) = _t->thumbWidth(); break;
        case 4: *reinterpret_cast< int*>(_v) = _t->borderWidth(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<QwtSlider *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setScalePosition(*reinterpret_cast< ScalePos*>(_v)); break;
        case 1: _t->setBgStyle(*reinterpret_cast< BGSTYLE*>(_v)); break;
        case 2: _t->setThumbLength(*reinterpret_cast< int*>(_v)); break;
        case 3: _t->setThumbWidth(*reinterpret_cast< int*>(_v)); break;
        case 4: _t->setBorderWidth(*reinterpret_cast< int*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    } else if (_c == QMetaObject::BindableProperty) {
    }
    (void)_o;
    (void)_id;
    (void)_c;
    (void)_a;
}

const QMetaObject *QwtSlider::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *QwtSlider::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_CLASSQwtSliderENDCLASS.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "QwtAbstractScale"))
        return static_cast< QwtAbstractScale*>(this);
    return QwtAbstractSlider::qt_metacast(_clname);
}

int QwtSlider::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QwtAbstractSlider::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    }
    return _id;
}
QT_WARNING_POP
